package cn.com.idmy.base.config;


import com.alibaba.fastjson2.JSONWriter;

public class DefaultConfig {
    public static final String ALL = "*";
    public static String pageRowsKey = "rows";
    public static String appKeyHeaderName = "X-Dmy-App-Key";
    public static String requestIdHeaderName = "X-Dmy-Request-Id";
    public static String spanIdHeaderName = "X-Dmy-Span-Id";
    public static String tenantIdHeaderName = "X-Dmy-Tenant-Id";
    public static String traceIdHeaderName = "X-Dmy-Trace-Id";
    public static String eventHeaderName = "X-Dmy-Event-Id";
    public static boolean accessControlAllowCredentials = true;
    public static String accessControlAllowOrigin = ALL;
    public static String[] accessControlAllowHeaders = {"Authorization", "Content-Type", "User-Agent", "X-Dmy-Tenant-Id", "X-Dmy-App-Key", "X-Dmy-Request-Id", "X-Dmy-Trace-Id", "X-Dmy-Span-Id"};
    public static String[] accessControlExposeHeaders = {"Date", "X-Dmy-Event-Id", "Content-Disposition"};
    public static String[] accessControlRequestMethods = {"OPTIONS", "POST", "GET", "PUT", "DELETE"};
    public static long accessControlMaxAge = 8600L;

    public static String corsDisabledHeaderName = "X-Cors-Disabled";
    public static String authHeaderName = "X-Dmy-Auth";
    public static String feignHeaderName = "X-Dmy-Feign";

    public static String createdAtName = "createdAt";
    public static String updatedAtName = "updatedAt";

    public static String creatorIdName = "creatorId";
    public static String creatorName = "creator";

    public static JSONWriter.Feature[] jsonWriterFeatures = {JSONWriter.Feature.BrowserCompatible, JSONWriter.Feature.FieldBased};

    public static int defaultErrCode = -1;
    public static String defaultErrMsg = "系统错误";

    public static long appRobotId = 0;
    public static String appRobotName = "应用机器人";

    public static long rootId = -777;
    public static String rootName = "超级管理员";
}
